{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>等级列表</h5>
        </div>
        <div class="ibox-content">
            <!--搜索框开始-->           
            <!--<div class="row">
                <div class="col-sm-12">
                    <form name="admin_list_sea" class="form-search" method="post" action="{:url('index')}">
                        <div class="col-sm-3">
                            <div class="input-group">
                                <input type="text" id="key" class="form-control" name="username-like" value="{$username|default=''}" placeholder="输入需查询的用户名" />
                                <span class="input-group-btn"> 
                                    <button type="submit" class="btn btn-primary"><i class="fa fa-search"></i> 搜索</button> 
                                </span>
                            </div>
                        </div>
                    </form>                         
                </div>
            </div>-->
            <!--搜索框结束-->
            <!--<div class="hr-line-dashed"></div>-->

            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>等级名称</th>
                                <th width="120px">直属店长(及以上级别)总数</th>
                                <th width="120px">直属有效店长(及以上级别)总数</th>
                                <th width="120px">非直属店长(及以上级别)总数</th>
                                <th width="120px">非直属有效店长(及以上级别)总数</th>
                                <th width="120px">我-最小收益</th>
                                <th width="120px">我-下级最小收益总和</th>
                                <th width="120px">团队内超级店长数</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="list-content">
                            {foreach $list as $vo}
                                <tr class="long-td">
                                    <td>{$vo.level_name}</td>
                                    <td>{$vo.direct_total_number}</td>
                                    <td>{$vo.direct_valid_number}</td>
                                    <td>{$vo.indirect_total_number}</td>
                                    <td>{$vo.indirect_valid_number}</td>
                                    <td>{$vo.min_profit}</td>
                                    <td>{$vo.direct_min_profit}</td>
                                    <td>{$vo.all_second_level_number}</td>
                                    <td>
                                        <a href="{:url('edit',['id'=>$vo['id']])}" class="btn btn-primary btn-xs">
                                            <i class="fa fa-edit"></i> 编辑</a>&nbsp;&nbsp;
                                    </td>
                                </tr>
                            {/foreach}
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- End Example Pagination -->
        </div>
    </div>
</div>
<!-- End Panel Other -->
</div>

{include file="public/footer" /}

</body>
</html>